package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.player.ChannelUserBaseInfo;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class ChannelUserBaseInfoBusiness {
    public static Map<Long, ChannelUserBaseInfo> getAllUserBaseInfo(){
        return DaoHelper.getChannelUserBaseInfoDaoImpl().getAllUserBaseInfo();
    }

    public static Map<Long, ChannelUserBaseInfo> getUserBaseInfoUpdateInTime(long startTime) {
        return DaoHelper.getChannelUserBaseInfoDaoImpl().getUserBaseInfoUpdateInTime(startTime);
    }

    public static ChannelUserBaseInfo getUserBaseInfoByUserId(long userId) {
        return DaoHelper.getChannelUserBaseInfoDaoImpl().getUserBaseInfoByUserId(userId);
    }

    public static boolean add(ChannelUserBaseInfo data) {
        return DaoHelper.getChannelUserBaseInfoDaoImpl().add(data);
    }

    public static boolean update(ChannelUserBaseInfo data) {
        return DaoHelper.getChannelUserBaseInfoDaoImpl().update(data);
    }
}
